﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace ProjectNocturnalFool
{
    class MenuScreen : UserScreen
    {
        protected LabelControl topBanner;
        protected PanelControl contentPanel;

        public override void LoadContent()
        {
            base.LoadContent();

            BackgroundControl backgroundCtrl = new BackgroundControl();
            backgroundCtrl.LoadContent();
            backgroundCtrl.x = 0;
            backgroundCtrl.y = 0;
            backgroundCtrl.bgColor = Color.Black;
            controls.Add(backgroundCtrl);

            topBanner = new LabelControl();
            topBanner.LoadContent();
            topBanner.bgTexture = TacticsGame.Instance.Content.Load<Texture2D>(Constants.TextureWhite);
            topBanner.message = "Chracter Generation";
            topBanner.x = x + Constants.ControlOffsets;
            topBanner.y = y + Constants.ControlOffsets;
            topBanner.width = width - Constants.ControlOffsets * 2;
            topBanner.height = Constants.BannerHeight;
            topBanner.drawBorder = true;

            contentPanel = new PanelControl();
            contentPanel.LoadContent();
            contentPanel.x = x + Constants.ControlOffsets;
            contentPanel.y = y + topBanner.height + Constants.ControlOffsets * 2;
            contentPanel.width = width - Constants.ControlOffsets * 2;
            contentPanel.height = VirtualScreen.Instance.VirtualHeight - (contentPanel.y + Constants.ControlOffsets);

            controls.Add(contentPanel);
            controls.Add(topBanner);
        }

    }
}
